
    <form lay-filter="systemEnterpriseForm" class="layui-form model-form">
        <input name="id" type="hidden"/>
        <div class="layui-form-item">
            <label class="layui-form-label">企业编号</label>
            <div class="layui-input-block">
                <input name="companyCode" placeholder="请输入企业编号" type="text" class="layui-input" lay-verify="required" required readonly/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">主体类型</label>
            <div class="layui-input-block">
                <select name="subjectType">
                        <option value="manufacturing">制造业企业</option>
                        <option value="serviceProvider">第三服务商</option>
                        <option value="developers">应用开发者</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">主体性质</label>
            <div class="layui-input-block">
                <select name="subjectNature">
                        <option value="centralEnterprise">央企/国企</option>
                        <option value="shares">股份公司</option>
                        <option value="limitedLiability">有限责任公司</option>
                        <option value="individual">个体户</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">主体类型</label>
            <div class="layui-input-block">
                <select name="typeOfEnterprise">
                        <option value="settled">入驻企业</option>
                        <option value="selfEmployed">自营企业</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所属行业</label>
            <div class="layui-input-block">
                <select name="industryId">
                        <option value="productionIndustry">生产行业</option>
                        <option value="manufacturingIndustry">制造行业</option>
                        <option value="iTIndustry">互联网行业</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input name="name" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">统一信用代码</label>
            <div class="layui-input-block">
                <input name="creditCode" placeholder="请输入统一信用代码" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">证件附件</label>
            <div class="layui-input-block">
                <input name="credentials" placeholder="请输入证件附件" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业照片</label>
            <div class="layui-input-block">
                <input name="photo" placeholder="请输入企业照片" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">微信OpenID</label>
            <div class="layui-input-block">
                <input name="wchartOpenId" placeholder="请输入微信OpenID" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">省</label>
            <div class="layui-input-block">
                <input name="province" placeholder="请输入省" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">市</label>
            <div class="layui-input-block">
                <input name="city" placeholder="请输入市" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">区</label>
            <div class="layui-input-block">
                <input name="area" placeholder="请输入区" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">详情地址</label>
            <div class="layui-input-block">
                <input name="address" placeholder="请输入详情地址" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">坐标信息</label>
            <div class="layui-input-block">
                <input name="coordinateInformation" placeholder="请输入坐标信息" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">物料类型</label>
            <div class="layui-input-block">
                <input name="productType" placeholder="请输入物料类型" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">可加工材料</label>
            <div class="layui-input-block">
                <input name="proProductMaterialCategoryId" placeholder="请输入可加工材料" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">设备厂家</label>
            <div class="layui-input-block">
                <input name="eduId" placeholder="请输入设备厂家" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">面向客户行业</label>
            <div class="layui-input-block">
                <select name="clientIndustryId">
                        <option value="productionIndustry">生产行业</option>
                        <option value="manufacturingIndustry">制造行业</option>
                        <option value="iTIndustry">互联网行业</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">银行账号</label>
            <div class="layui-input-block">
                <input name="bankAccount" placeholder="请输入银行账号" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开户行</label>
            <div class="layui-input-block">
                <input name="bank" placeholder="请输入开户行" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">开户许可证</label>
            <div class="layui-input-block">
                <input name="license" placeholder="请输入开户许可证" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">营业执照编号</label>
            <div class="layui-input-block">
                <input name="businessLicenseCode" placeholder="请输入营业执照编号" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">入驻上传证明</label>
            <div class="layui-input-block">
                <input name="entryCertificate" placeholder="请输入入驻上传证明" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">入驻填写示例</label>
            <div class="layui-input-block">
                <input name="entryProof" placeholder="请输入入驻填写示例" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">法人姓名</label>
            <div class="layui-input-block">
                <input name="legalPersonName" placeholder="请输入法人姓名" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">法人身份证</label>
            <div class="layui-input-block">
                <input name="idCard" placeholder="请输入法人身份证" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证正面证据照</label>
            <div class="layui-input-block">
                <input name="idCardFront" placeholder="请输入身份证正面证据照" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证反面证据照</label>
            <div class="layui-input-block">
                <input name="idCardReverse" placeholder="请输入身份证反面证据照" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司简介</label>
            <div class="layui-input-block">
                <input name="companyProfile" placeholder="请输入公司简介" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input name="sortNumber" placeholder="请输入排序" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <select name="status">
                        <option value="pendingReview">待审核</option>
                        <option value="audited">已审核</option>
                        <option value="auditFailed">审核未通过</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员编码(UID)</label>
            <div class="layui-input-block">
                <input name="administratorCode" placeholder="请输入管理员编码(UID)" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员名称</label>
            <div class="layui-input-block">
                <input name="administratorName" placeholder="请输入管理员名称" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员id</label>
            <div class="layui-input-block">
                <input name="administratorId" placeholder="请输入管理员id" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input name="username" placeholder="请输入用户名" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">入驻类型</label>
            <div class="layui-input-block">
                <select name="occupancyType">
                        <option value="company">企业</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业登陆账号</label>
            <div class="layui-input-block">
                <input name="companyNumbe" placeholder="请输入企业登陆账号" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">企业登录密码</label>
            <div class="layui-input-block">
                <input name="companyPassword" placeholder="请输入企业登录密码" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">密保邮箱</label>
            <div class="layui-input-block">
                <input name="encryptedEmail" placeholder="请输入密保邮箱" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">重复密码</label>
            <div class="layui-input-block">
                <input name="companyResPassword" placeholder="请输入重复密码" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系人</label>
            <div class="layui-input-block">
                <input name="linkman" placeholder="请输入联系人" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系电话</label>
            <div class="layui-input-block">
                <input name="contact" placeholder="请输入联系电话" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">企业后台登录地址</label>
            <div class="layui-input-block">
                <input name="enterpriseAddress" placeholder="请输入企业后台登录地址" type="text" class="layui-input" lay-verify="required" required/>
            </div>
        </div>
        <div class="layui-form-item text-right">
            <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
            <button class="layui-btn" lay-filter="systemEnterpriseFormSubmit" lay-submit>保存</button>
        </div>
    </form>

<!-- js部分 -->
<script>
    layui.use(['layer', 'form', 'table', 'admin'], function () {
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var config = layui.config;
        var admin = layui.admin;
        var upload = layui.upload;
        list();

        //初始化表单
        function list() {
            admin.req('enterprise/system/admin/systemEnterprise/list', {}, function (res) {
                form.val("systemEnterpriseForm", res.data[0]);
                form.render();
            }, 'GET');
        }
    });
</script>